﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using YodaMaster.Models;
using System.ComponentModel.DataAnnotations;



namespace YodaMaster.Models
{
    public class Schedule
    {
        [Key]
        public int RecordId { get; set; }
        public enum Schedule_Type { Valid, Overlap };

        public TimeTable table { get; set; }
           
        public Schedule_Type Type { get; set; }
         
        public List <Group_Course> schedule { get; set; }
           
        public List<ScheduleCounters> Counters { get; set; }

        public Dictionary<Course,string> SchedCourses { get; set; }

        public List<SchedGroupCourse> groups { get; set; }

        public List<ScheduleGroups> overlap_groups { get; set; } 

        public List<SchedGroupCourse> Lists { get; set; }

        public ScheduleParams parameters { get; set; }
        
        public List<int> index_lec { get; set; }

        public List<int> index_tut { get; set; }

        public List<int> index_lab { get; set; }

        public List<int> num_of_lists { get; set; }

           
        public int numofschedule { get; set; }

        public int course_counter { get; set; }
           
        public int cycle { get; set; }

        public Schedule()
        {
            schedule = new List<Group_Course>();
            numofschedule = 0;
            Type = Schedule_Type.Valid;
        }
        public Schedule (int num)
        {
            schedule = new List<Group_Course>();
            numofschedule = num;
            Type = Schedule_Type.Valid;
           

         
        }

      
           
        }
    }
